  {extend name="public/common"} {block name="body"}
<title>基本设置</title>
</head>
<style type="text/css">

 .radius:hover{
 	background:#e5e5e5;
 	border-color: #e5e5e5;
 	color: #333;
 }
 .line{
 	position: absolute;
		    right: 0;
		    top: 13px;
		    background: #636363;
		    width: 1px;
		    height: 14px;
		    overflow: hidden;
 }
 .l{
 	position: relative;
 }
</style>
<body>
  <nav class="breadcrumb">
    <i class="Hui-iconfont">&#xe67f;</i>
   财务管理
    <span class="c-gray en">&gt;</span>
    玩家取款审核
    <span class="c-gray en">&gt;</span>
    未审核提现列表
    <a class="btn btn-success radius r"
      style="line-height: 1.6em; margin-top: 3px"
      href="javascript:location.replace(location.href);" title="刷新">
      <i class="Hui-iconfont">&#xe68f;</i>
    </a>
  </nav>
  <div style="padding:20px;height:30px;">
  	
  	<div class="new_box">
  <div class="cl pd-5 bg-1 bk-gray mt-20"> 
  	<span class="l"><a class="btn btn-primary radius"  href="{:url('recharge/tx_list')}" style="background:#636363;border-color: #636363;color: #fff;"> 未审核提现列表</a><span class="line">◆</span></span>
  	<span class="l"><a class="btn btn-primary radius"  style="margin-left:20px;"  href="{:url('recharge/tx_list_ok')}?">已审核提现列表</a><span class="line">◆</span></span>
  	<span class="l"><a class="btn btn-primary radius"  style="margin-left:20px;"  href="{:url('recharge/tx_list_no')}">提现退回列表</a></span>    
  </div>
  <div class="text-c" style="margin-top:10px;">
    <form action="/admin/recharge/tx_list" enctype="application/x-www-form-urlencoded" method="post" class="l" style="margin-left:20px;">
  
    <input type="text" name="us_sql" id="us_sql" value="{$username}" placeholder=" 会员账号" style="width:250px" class="input-text">
    日期范围：
    <input type="text" name="sDate1" {if condition="$time1 neq ''"}value="{$time1}"{/if} onfocus="WdatePicker({maxDate:'%y-%M-%d'})" id="logmin" class="input-text Wdate" style="width:120px;">
    -
    <input type="text" name="sDate2" {if condition="$time2 neq ''"}value="{$time2}"{/if} onfocus="WdatePicker({maxDate:'%y-%M-%d'})" id="logmax" class="input-text Wdate" style="width:120px;">
    <button class="btn btn-success" type="submit"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
    
  </form>
  <span class="r" style="margin-right:20px;">当前列表提现金额：<strong>{$money}</strong> 元</span>
  </div>


     <div class="page-container dataTables_wrapper">
      <div id="tab-system" class="HuiTab">
        <div class="tabCon">
          <div class="mt-20">
            <table
              class="table table-border table-bordered table-bg table-hover table-sort table-responsive">
              <thead>
                <tr class="text-c">
                  <th>交易号</th>
                  <th>用户名</th>
                  <th>会员等级</th>
                  <th>创建时间</th>
                  <th>取款次数</th>
                  <th>实际取款</th>
                  <th>稽核通过</th>
                  <th>操作</th>
                  <th>审核人</th>
                  <th>审核时间</th>
                  <th>IP</th>
                </tr>
                
              </thead>
              <tbody>
              {volist name="query" id="item"}
                <tr class="text-c">
                  <td>{$item.ddhm}</td>
                  <td><a onclick="checklist('银行卡信息','/admin/recharge/userDetail?uid={$item.username}&tx={$item.uuid}',800,500)" href="javascript:;">{$item.username}</a></td>
                  <td>{$item.class_name}</td>
                  <td>{$item.txtime|date='Y-m-d H:i:s',###}</td>
                  <td>{$item.cishu}</td>
                  <td>{$item.txje}</td>
              {if $item.dml==0}
                  <td>是</td>
              {else/}
                  <td style="color:red">否</td>
              {/if}

                  <td>
                
                      <div class='am-btn-toolbar'>
                           <div class='am-btn-group am-btn-group-xs'>
                           {if condition="$item.ifck lt '1'"}
                           <a style="text-decoration: none;padding:4px 10px 4px 14px;background-color:#5eb95e;color:white;"class="ml-5 shenhe" href="/admin/recharge/toExamine?czid={$item.uuid}&ifck=1">
  
                            	 审核
						    </a> 
                           {/if}
                              <a style="text-decoration: none;padding:4px 10px 4px 14px;background-color:#5eb95e;color:white;" class="ml-5 chukuan" onclick="open_zhixing_3({$item.uuid})">
                            	<input class='fky' type="hidden" value="{$item.uuid}">
                            	出款
						    </a>
                               <a style="text-decoration: none;padding:4px 10px 4px 14px;background-color:#5eb95e;color:white;" class="ml-5" onclick="open_zhixing_4({$item.uuid})" >
                            	 退回
						    </a>
                               </div>
                         </div>
                   </td>
                  <td>{$item.shadmin}</td>
                  {if condition="$item.shtime eq ''"}<td></td>{else /}<td>{$item.shtime|date='Y-m-d H:i:s',###}</td>{/if}
                 
                  <td>{$item.txip}</td>
                  
                    
                </tr>
               {/volist}
              </tbody>
            </table>
          </div>
        </div>
      </div>
      <div class="dataTables_paginate paging_simple_numbers" style="width:100%;">
            <div style="float:left;">  
          每页显示<select name="limit" style="height:26px;" id="code">
               <option value="20" {if condition="$limit eq 20"}selected{/if}>
                20
              </option>
              <option value="50" {if condition="$limit eq 50"}selected{/if}>
                50
              </option>
              <option value="100" {if condition="$limit eq 100"}selected{/if}>
                100
              </option>                  
           </select>页
          </div>
            <span style="float:right;margin-left:-2px;">总共{$query->lastPage()}页  当前第{$query->currentPage()}页 ，共{$query->total()}条</span>
            <div style="float:left;">{$query->render()}</div>
    </div>
    </div>
    </div>
    </div>
  <div id="warning" style="display: none;"></div>

{/block}{block name="js"}

 <script type="text/javascript" src="__SYSMET__/lib/My97DatePicker/4.8/WdatePicker.js"></script> 
<script type="text/javascript">
    $(function() {
  $('.skin-minimal input').iCheck({
    checkboxClass : 'icheckbox-blue',
    radioClass : 'iradio-blue',
    increaseArea : '20%'
  });
  $("#tab-system").Huitab({
    index : 0
  });
});
</script>
<script type="text/javascript">

function open_zhixing_3(a){
	layer.confirm('是否确定出款？', {
		  btn: ['确认','取消'] //按钮
		}, function(){
			var index = layer.load(1, {
			  shade: [0.5,'#fff'] //0.1透明度的白色背景
			});
			window.location.href="/admin/recharge/successTurnover?czid="+a;
		});
}
function checklist(title,url,w,h){
	layer_show(title,url,w,h);
}
function open_zhixing_4(tid){
	$.ajax({	
		 type: "POST",
       	 url: "/admin/recharge/tiXianReturn",
       	 data:{"txid":tid},
		 success: function(data){
		 	if(data=="NO"){
				alert('无权限操作！');
				document.getElementById('tkbz').value=""; 
			    $('#zhixing_tuihui').hide();
			}else{
				  layer.open({
					  title:"退回 [ <SPAN style='color:#990000'>"+data+"</SPAN> ] 的提现",
				  	content:'<textarea id="tuibz" cols="35" rows="5"></textarea><p style="color:red">退回提现请提醒其他出款工作员</p>',
					  	yes: function(index, layero){
					  		var tuibz = $("#tuibz").val();
					  		      window.location.href="/admin/recharge/tiXianReturnBeiZhu?czid="+tid+"&tuibz="+tuibz;
							  }
				  });
			} 
		}
        });
	
}
setInterval(function () {
    $.get(
        '/admin/index/warning',
        function(data){
            var message = eval("("+data+")");
            if(message.tx){
                var txdata = message.tx;
                for( var key in txdata ){
                    if( 2==parseInt(key) ){
                        $('#warning').html(txdata[key]);
                    }
                }
            }
        },'json'
    );
},15*1000);
</script>
<script>
$(function(){
var username=$("#server_user").val();
var time1=$("#logmin").val();
var time2=$("#logmax").val();
 var id = $(this).find('option:selected').val();
var li=$(".am-pagination").children();
  for (i = 0; i < li.length; i++) {
        
        var url=li.eq(i).attr('href');
        if(url){
          li.eq(i).attr('href',url+'&&username='+username+'&&time1='+time1+'&&time2='+time2+"&&limit="+id);
        }       
    }
  
})
$("#code").on('change',function(){
    var username=$("#server_user").val();
    var time1=$("#logmin").val();
    var time2=$("#logmax").val();
    
    var id = $(this).find('option:selected').val();
    window.location.href="/admin/recharge/tx_list?username="+username+"&&limit="+id+"&&time1="+time1+"&&time2="+time2;
  })
</script>
{/block}
